{wc:templates "index","header"}
<link rel="stylesheet" type="text/css" href="{G_TEMPLATES_STYLE}/css/Home.css" />
<style type="text/css">
.demo {
    width: 707px;
    height: 298px;
    position: relative;
    overflow: hidden;
    padding: 0px;
}

.num {
    position: absolute;
    right: 20px;
    top: 275px;
    z-index: 10;
}

.num a {
    background: #fff;
    color: #ff6700;
    border: 1px solid #ccc;
    width: 16px;
    height: 16px;
    display: inline-block;
    text-align: center;
    line-height: 16px;
    margin: 0 3px;
    cursor: pointer;
}

.num a.cur {
    background: #ff6700;
    color: #fff;
}

.demo ul {
    position: relative;
    z-index: 5;
}

.demo ul li {
    position: absolute;
    display: none;
}

h3 i {
    display: inline-block;
    font-size: 0;
    width: 0;
    height: 22px;
    overflow: hidden;
    border-left: 4px solid #f60;
    margin-right: 7px;
    position: relative;
    top: 3px;
    font-style: normal;
    font-weight: normal;
    color: #333;
}


/*20170613-T-S*/


/*S-轮播图*/

.weichuangyi_span {
    width: 707px;
    height: 23px;
    position: absolute;
    left: 0;
    bottom: 0;
    zoom: 1;
}

.weichuangyi_span span {
    width: 15px;
    height: 15px;
    display: block;
    float: left;
    margin-left: 5px;
    background: url(statics/templates/taolong-1yygkuan/images/dot.png) no-repeat left bottom;
}

.weichuangyi_span p {
    width: 100px;
    height: 35px;
    margin: 0 auto;
}

.weichuangyi_span .weichuangyi_span_one {
    background: url(statics/templates/taolong-1yygkuan/images/dot.png) no-repeat left top;
}

.weichuangyi_left {
    width: 40px;
    height: 66px;
    z-index: 999;
    cursor: pointer;
    background: #000 url(statics/templates/taolong-1yygkuan/images/ad_ctr.png) no-repeat -2px -190px;
    filter: alpha(opacity: 50);
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 117px;
    display: none;
}

.weichuangyi_left1 {
    background: #000 url(statics/templates/taolong-1yygkuan/images/ad_ctr.png) no-repeat -4px -10px;
}

.weichuangyi_right {
    width: 40px;
    height: 66px;
    z-index: 999;
    cursor: pointer;
    background: #000 url(statics/templates/taolong-1yygkuan/images/ad_ctr.png) no-repeat -14px -280px;
    filter: alpha(opacity: 50);
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 117px;
    display: none;
}

.weichuangyi_right1 {
    background: #000 url(statics/templates/taolong-1yygkuan/images/ad_ctr.png) no-repeat -12px -100px;
}


/*E-轮播图*/

.m_pic_pic:hover {
    left: -5px;
}


/*20170613-T-E*/
</style>
<script type="text/javascript" src="{G_TEMPLATES_JS}/layer/layer.min.js"></script>
<script type="text/javascript" src="{G_TEMPLATES_JS}/index_focus.js"></script>
<div id="index_desc" class="hide layer_pageContent" style="display: none;"><img src="{G_UPLOAD_PATH}/banner/indexad.jpg"></div>
<script>
$(function() {
    var index_show = $.cookie('index_show');
    if (!index_show) {
        $.layer({
            type: 1,
            title: false,
            // time: 3,
            fix: false,
            offset: ['50px', ''],
            border: [0],
            area: ['580px', '754px'],
            page: {
                dom: '#index_desc'
            }
        });
        $.cookie('index_show', '1', {
            expires: 7
        });
    }
});
</script>
<!--banner and Recommend 开始-->
<div class="banner_recommend">
    <!--左边 banner_left 开始-->
    <div class="banner_left">
        <div class="g_hot">
            <div class="banner_all">
                <!--banner-box 开始-->
                <div class="banner-box weichuangyi">
                    {wc:getlist sql="select * from `@#_slide` where 1" return="slides"}
                    <div class="demo">
                        <ul class="weichuangyi_ul">
                            <!-- <li><a href="" class="img"><img src="statics/templates/taolong-1yygkuan/images/ad_auto.jpg"  alt="微创意" /></a></li>
						<li><a href="" class="img"><img src="statics/templates/taolong-1yygkuan/images/ad_stock.jpg"  alt="微创意" /></a></li>		
						<li><a href="" class="img"><img src="statics/templates/taolong-1yygkuan/images/ad_yuetu.jpg"  alt="微创意" /></a></li> -->
                            {wc:loop $slides $slide} {wc:if $ln == 1}
                            <li style="display:list-item;">
                                <a href="{wc:$slide['link']}" target="_blank"><img src="{G_UPLOAD_PATH}/{wc:$slide['img']}"></a>
                            </li>
                            {wc:else}
                            <li style="display:none;">
                                <a href="{wc:$slide['link']}" target="_blank"><img src="{G_UPLOAD_PATH}/{wc:$slide['img']}"></a>
                            </li>
                            {wc:if:end} {wc:loop:end}
                            <li style="display:list-item;">
                                <a href="" target="_blank"><img src="statics/templates/taolong-1yygkuan/images/ad_auto.jpg" alt="微创意" /></a>
                            </li>
                            <li style="display:list-item;">
                                <a href="" target="_blank"><img src="statics/templates/taolong-1yygkuan/images/ad_yuetu.jpg" alt="微创意" /></a>
                            </li>
                        </ul>
                        <p class="weichuangyi_left"></p>
                        <p class="weichuangyi_right"></p>
                        <div class="num weichuangyi_span">
                            <p>
                                <span class="weichuangyi_span_one"></span> {wc:php:start} for($i=1;$i
                                <3;$i++){ echo '<span></span>' ; } {wc:php:end} <!-- <span class="weichuangyi_span_one">
                                    </span>
                                    <span></span>
                                    <span></span> -->
                            </p>
                        </div>
                        {wc:getlist:end}
                    </div>
                </div>
                <!--banner-box 结束-->
                <!-- 首页中间推荐商品 start-->
                <div class="m_hot_pro">
                    <ul>
                        {wc:getlist sql="select * from `@#_shoplist` where `pos` = '1' and `q_uid` is null ORDER BY `id` DESC LIMIT 2" return="new_shop2"} {wc:loop $new_shop2 $new_shop}
                        <li style="border-left:none;border-right: 1px solid #e6e6e6;">
                            <div class="m_pic_all">
                                <span class="m_pic_txt">
								<a  href="{WEB_PATH}/goods/{wc:$new_shop['id']}"  target="_blank" title="{wc:$new_shop['title']} ">
								{wc:$new_shop['title']}
								</a></span>
                                <p>
                                    <a class="m_pic_pic" href="{WEB_PATH}/goods/{wc:$new_shop['id']}" target="_blank" title="{wc:$new_shop['title']} ">
                                        <i class="goods_tj">推荐</i>
                                        <img alt="{wc:$new_shop['title']}" src="{G_UPLOAD_PATH}/{wc:$new_shop['thumb']}" width="100" height="100"></a>
                                </p>
                                <div class="m_pic_button">
                                    <p class="m_pic_p gray9">已参与<span style="color:#f60;">{wc:$new_shop['canyurenshu']}</span>人次</p>
                                </div>
                            </div>
                        </li>
                        {wc:loop:end}
                    </ul>
                </div>
                <!-- 首页中间推荐商品 end-->
            </div>
        </div>
    </div>
    <!--左边 banner_left 结束-->
    <!--右边 banner_right 开始-->
    <div class="banner_right">
        <div class="m_login">
            <a href="/?/single/newbie"><img src="{G_TEMPLATES_IMAGE}/index-come2.gif" width="208" height="108"></a>
        </div>
        <div class="m_app">
            <ul>
                <li><a href="{G_WEB_PATH}/?/go/index/qualification#rz1" target="_blank" title="诚信网站"><i class="i1"></i>诚信网站</a></li>
                <li><a href="{G_WEB_PATH}/?/go/index/qualification#rz2" target="_blank" rel="nofollow" title="可信网站"><i class="i2"></i>可信网站</a></li>
                <li><a href="{G_WEB_PATH}/?/go/index/qualification#rz3" target="_blank" rel="nofollow" title="电商诚信"><i class="i3"></i>电商诚信</a></li>
                <li><a href="{G_WEB_PATH}/?/go/index/qualification#rz4" target="_blank" rel="nofollow" title="安信宝"><i class="i4"></i>安信宝</a></li>
                <li><a href="{G_WEB_PATH}/?/go/index/qualification#rz5" target="_blank" rel="nofollow" title="监督管理局"><i class="i5"></i>监督管理局</a></li>
                <li><a href="{G_WEB_PATH}/?/go/index/qualification#rz6" target="_blank" rel="nofollow" title="更多"><i class="i6"></i>更多</a></li>
            </ul>
        </div>
        <div class="m_notice">
            <p class="mo_title">云购公告</p>
            <!--公告 m_notice_list 开始-->
            <div class="m_notice_list">
                <ul>
                    {wc:php:start} $cateid='31'; {wc:php:end} {wc:getlist sql="select * from `@#_article` where `cateid`='$cateid' order by `id` DESC limit 3" return="article"} {wc:php:start} if($article){ {wc:php:end} {wc:loop $article $art}
                    <li>
                        <span class="u_radius_point"></span>
                        <a href="{WEB_PATH}/help/{wc:$art['id']}" target="_blank">{wc:fun:_strcut($art['title'],30)}</a>
                    </li>
                    {wc:loop:end} {wc:php:start} } {wc:php:end} {wc:getlist:end}
                </ul>
            </div>
            <!--公告 m_notice_list 结束-->
        </div>
    </div>
    <!--右边 banner_right 结束-->
    <script type="text/javascript">
    // $(function(){
    // 	var sw = 0;
    // 	$(".demo .num a").mouseover(function(){
    // 		sw = $(".num a").index(this);
    // 		myShow(sw);
    // 	});
    // 	function myShow(i){
    // 		$(".demo .num a").eq(i).addClass("cur").siblings("a").removeClass("cur");
    // 		$(".demo ul li").eq(i).stop(true,true).fadeIn(600).siblings("li").fadeOut(600);
    // 	}
    // 	//滑入停止动画，滑出开始动画
    // 	$(".demo").hover(function(){
    // 		if(myTime){
    // 		   clearInterval(myTime);
    // 		}
    // 	},function(){
    // 		myTime = setInterval(function(){
    // 		  myShow(sw)
    // 		  sw++;
    // 		  if(sw=={wc:fun:count($slides)}){sw=0;}
    // 		} , 3000);
    // 	});
    // 	//自动开始
    // 	var myTime = setInterval(function(){
    // 	   myShow(sw)
    // 	   sw++;
    // 	   if(sw=={wc:fun:count($slides)}){sw=0;}
    // 	} , 3000);
    // })
    </script>
</div>
<!--banner and Recommend 结束-->
<!--最新揭晓 goods_hot 开始-->
<div class="goods_hot">
    <div class="hot_title" style="border-bottom:none;height: 38px;padding: 10px 0;">
        <h3><i></i>最新揭晓</h3> {wc:getlist sql="select sum(id) as idnumber from `@#_shoplist` where `q_end_time` is not null and `q_showtime` = 'N' " return="zxjx_idnumber"}
        <p style="display: none;"><a href="{WEB_PATH}/goods_lottery/" target="_blank">截至目前共揭晓商品<span>
		{wc:loop $zxjx_idnumber  $idnumber}
		{wc:$idnumber['idnumber']}
		{wc:loop:end}		
		</span>个</a></p>
        {wc:getlist:end}
        <a class="new_more" style="color: #999;margin: 0;font-size: 12px;" href="{WEB_PATH}/goods_lottery/">更多</a>
    </div>
    <div class="g_list" id="right-gun">
        <ul id="ulNewAwary">
            {wc:getlist sql="select qishu,id,sid,thumb,title,q_uid,q_user from `@#_shoplist` where `q_end_time` is not null and `q_showtime` = 'N' ORDER BY `q_end_time` DESC LIMIT 5" return="zxjx_templetes3"} {wc:loop $zxjx_templetes3 $gzxjx_templetes3} {wc:php:start} $gzxjx_templetes3['q_user'] = unserialize($gzxjx_templetes3['q_user']); {wc:php:end}
            <li class="new3_li">
                <dl style="display: block;">
                    <dt>
                        <a href="{WEB_PATH}/dataserver/{wc:$gzxjx_templetes3['id']}"><img src="{G_UPLOAD_PATH}/{wc:$gzxjx_templetes3['thumb']}" width="213" height="200"></a>
                    </dt>
                    <dd class="g_user">
                        {wc:if $gzxjx_templetes3['q_user']}
                        <p>恭喜<a href="{WEB_PATH}/uname/{wc:fun:idjia($gzxjx_templetes3['q_uid'])}">{wc:fun:get_user_name($gzxjx_templetes3['q_user'])}</a>等获得</p>
                        {wc:else}
                        <p>无人中奖</p>
                        {wc:if:end}
                    </dd>
                    <dd class="g_name"><a href="{WEB_PATH}/dataserver/{wc:$gzxjx_templetes3['id']}" title="{wc:$gzxjx_templetes3['title']}">(第{wc:$gzxjx_templetes3['qishu']}期){wc:$gzxjx_templetes3['title']}</a></dd>
                </dl>
                <s></s>
            </li>
            {wc:loop:end} {wc:getlist:end}
        </ul>
        <!---倒计时start--->
        <script type="text/javascript" src="{G_TEMPLATES_JS}/GLotteryFun.js"></script>
        <script type="text/javascript">
        $(document).ready(function() {
            gg_show_time_init("ulNewAwary", '{WEB_PATH}', 0);
        });
        </script>
        <!---倒计时end--->
    </div>
</div>
<!--最新揭晓 goods_hot 结束-->
<div class="clear"></div>
<!--product 开始-->
<div class="goods_hot">
    <div class="hot_title" style="height: 36px;padding: 10px 0;border: none;">
        <h3><i></i>热门推荐</h3>
        <!-- <a href="{WEB_PATH}/goods_list/0_0_2">更多&gt;&gt;</a> -->
        <a class="new_more" style="color: #999;margin: 0;font-size: 12px;" href="{WEB_PATH}/goods_list/0_0_2">更多</a>
    </div>
    <div class="g-hot">
        <div class="g-hotL" id="hot-goods-list">
            {wc:loop $shoplistrenqi $renqi}
            <!-- item start -->
            <div class="g-hotL-list">
                <div class="g-hotL-con">
                    <ul>
                        <li class="g-hot-pic">
                            <a href="{WEB_PATH}/goods/{wc:$renqi['id']}" target="_blank" title="{wc:$renqi['title']}">
                                <img class="g-hotL-list-img" src="{G_UPLOAD_PATH}/{wc:$renqi['thumb']}" alt="{wc:$renqi['title']}">
                            </a>
                        </li>
                        <li class="g-hot-name">
                            <a href="{WEB_PATH}/goods/{wc:$renqi['id']}" target="_blank" title="{wc:$renqi['title']}">
									{wc:$renqi['title']}
								</a>
                        </li>
                        <li class="yj-gray">价值：{wc:$renqi['money']}</li>
                        <li class="g-progress">
                            <dl class="m-progress">
                                <dt class="t-progress">
                                    <b class="b-progress" style="width:{wc:fun:width($renqi['canyurenshu'],$renqi['zongrenshu'],221)}px;"></b>
                                </dt>
                                <dd style="margin: 0;padding: 0;">
                                    <span class="yj-orange yj-fl">
											<em class="yj-em">{wc:$renqi['canyurenshu']}</em>已参与
										</span>
                                    <span class="yj-gray6 yj-fl">
											<em class="yj-em">{wc:$renqi['zongrenshu']}</em>总需人数
										</span>
                                    <span class="yj-blue yj-fr">
											<em class="yj-em">{wc:$renqi['zongrenshu']-$renqi['canyurenshu']}</em>剩余
										</span>
                                </dd>
                            </dl>
                        </li>
                        <li>
                            <a class="yj-uim" href="{WEB_PATH}/goods/{wc:$renqi['id']}" target="_blank" title="立即参与">立即参与</a>
                            <a class="yj-cart" href="javascript:;" title="加入购物车">
                                <s class="yj-cs"></s>
                            </a>
                        </li>
                        <div class="yjCurbor_id" style="display:none;">{wc:$renqi['id']}</div>
                        <div class="yjCurbor_yunjiage" style="display:none;">{wc:$renqi['yunjiage']}</div>
                        <div class="yjCurbor_shenyu" style="display:none;">{wc:$renqi['shenyurenshu']}</div>
                    </ul>
                </div>
            </div>
            <!-- item ends -->
            {wc:loop:end}
        </div>
        <div class="g-hotR yj-fr">
            <div class="u-are">正在云购</div>
            <div class="g-zzyging" id="mq" onmouseover=iScrollAmount=0>
                <ul style="margin-top: 0px;" id="buyList">
                    {wc:loop $go_record $gorecord}
                    <li>
                        <span style="float: left;">
							<a href="{WEB_PATH}/goods/{wc:$gorecord['shopid']}" class="pic" target="_blank">
                    			<img src="{G_UPLOAD_PATH}/{wc:fun:shopimg($gorecord['shopid'])}">
                    		</a>
						</span>
                        <p>
                            <a class="blue" href="{WEB_PATH}/uname/{wc:fun:idjia($gorecord['uid'])}">{wc:fun:get_user_name($gorecord)}</a>
                            <br>
                            <a href="{WEB_PATH}/goods/{wc:$gorecord['shopid']}" target="_blank">{wc:$gorecord['shopname']}</a>
                        </p>
                    </li>
                    {wc:loop:end}
                </ul>
            </div>
            <div class="u-see100">
                <a href="">查看最新100条记录</a>
            </div>
        </div>
        <script type="text/javascript">
        var oMarquee = document.getElementById("mq"); //滚动对象 
        var iLineHeight = 88; //单行高度，像素 
        var iLineCount = 9; //实际行数 
        var iScrollAmount = 1; //每次滚动高度，像素 
        function run() {
            oMarquee.scrollTop += iScrollAmount;
            if (oMarquee.scrollTop == iLineCount * iLineHeight) oMarquee.scrollTop = 0;
            if (oMarquee.scrollTop % iLineHeight == 0) {
                window.setTimeout("run()", 500);
            } else {
                window.setTimeout("run()", 5);
            }
        }
        oMarquee.innerHTML += oMarquee.innerHTML;
        window.setTimeout("run()", 500);
        </script>
    </div>
</div>
<!--product 结束-->
<div class="clear"></div>
<script type="text/javascript">
$(function() {
    $("#hostGoodsItems li a.buy_bus").click(function() {
        var sw = $("#hostGoodsItems li a.buy_bus").index(this);
        var src = $("#hostGoodsItems li .pic a img").eq(sw).attr('src');
        var $shadow = $('<img id="cart_dh" style="display:none; border:1px solid #aaa; z-index:99999;" width="200" height="200" src="' + src + '" />').prependTo("body");
        var $img = $("#hostGoodsItems li .pic").eq(sw);
        $shadow.css({
            'width': 200,
            'height': 200,
            'position': 'absolute',
            "left": $img.offset().left + 16,
            "top": $img.offset().top + 9,
            'opacity': 1
        }).show();
        var $cart = $("#btnMyCart");
        $shadow.animate({
            width: 1,
            height: 1,
            top: $cart.offset().top,
            left: $cart.offset().left,
            opacity: 0
        }, 500, function() {});

    });
    $("#hostGoodsItems li a.go_Shopping").click(function() {
        var sw = $("#hostGoodsItems li a.go_Shopping").index(this);
    });
});


$(function() {
    $(".yj-cart").click(function() {
        var sw = $(".yj-cart").index(this);
        var src = $(".g-hotL-list-img").eq(sw).attr('src');
        var $shadow = $('<img id="cart_dh" style="display:none; border:1px solid #aaa; z-index:99999;" width="200" height="200" src="' + src + '" />').prependTo("body");
        var $img = $(".g-hotL-list-img").eq(sw);
        $shadow.css({
            'width': 200,
            'height': 200,
            'position': 'absolute',
            "left": $img.offset().left + 16,
            "top": $img.offset().top + 9,
            'opacity': 1
        }).show();
        var $cart = $("#btnMyCart");
        $shadow.animate({
            width: 1,
            height: 1,
            top: $cart.offset().top,
            left: $cart.offset().left,
            opacity: 0
        }, 500, function() {
            yjCartcookie(sw, false);
        });

    });
});


function yjCartcookie(sw, cook) {
    var shopid = $(".yjCurbor_id").eq(sw).text(),
        shenyu = $(".yjCurbor_yunjiage").eq(sw).text(),
        money = $(".yjCurbor_shenyu").eq(sw).text();
    var Cartlist = $.cookie('Cartlist');
    if (!Cartlist) {
        var info = {};
    } else {
        var info = $.evalJSON(Cartlist);
    }
    if (!info[shopid]) {
        var CartTotal = $("#sCartTotal").text();
        $("#sCartTotal").text(parseInt(CartTotal) + 1);
        $("#btnMyCart em").text(parseInt(CartTotal) + 1);
    }
    info[shopid] = {};
    info[shopid]['num'] = 1;
    info[shopid]['shenyu'] = shenyu;
    info[shopid]['money'] = money;
    info['MoenyCount'] = '0.00';
    $.cookie('Cartlist', $.toJSON(info), {
        expires: 30,
        path: '/'
    });
    if (cook) {
        window.location.href = "{WEB_PATH}/member/cart/cartlist";
    }
}
</script>
<!--商品 开始-->
<div class="get_ready">
    <div class="hot_title" style="width:1195px;height:55px;">
        <h3 style="margin-top:7px;"><i></i>即将揭晓</h3>
        <div class="fr">
            {wc:php:start} $this->db=System::load_sys_class('model'); $url_center=''; $center_navigation=$this->db->GetList("select cateid,parentid,name from `@#_category` where `model` = '1' and `parentid` = '0' order by `order` DESC"); $center_navigation=array_reverse($center_navigation,true); foreach($center_navigation as $v){ $url_center.='
            <a href="'.WEB_PATH.'/goods_list/'.$v['cateid'].'_0_0">'.$v['name'].'</a>'; } $url_center.='
            <a href="'.WEB_PATH.'/goods_list/">全部</a>'; echo $url_center; {wc:php:end}
        </div>
    </div>
    <ul id="readyLotteryItems" class="hot-list">
        {wc:loop $shoplist $shop}
        <li class="list-block">
            <div class="pic">
                <a href="{WEB_PATH}/goods/{wc:$shop['id']}" target="_blank" title="{wc:$shop['title']}"><img src="{G_UPLOAD_PATH}/{wc:$shop['thumb']}" alt="{wc:$shop['title']}"></a>
            </div>
            <p class="name"><a href="{WEB_PATH}/goods/{wc:$shop['id']}" target="_blank" title="{wc:$shop['title']}">{wc:$shop['title']}</a></p>
            <p class="money">价值：<span class="rmb">{wc:$shop['money']}</span></p>
            <div class="Progress-bar" style="">
                <p title="已完成{wc:fun:percent($shop['canyurenshu'],$shop['zongrenshu'])}"><span style="width:{wc:fun:width($shop['canyurenshu'],$shop['zongrenshu'],221)}px;"></span></p>
                <ul class="Pro-bar-li">
                    <li class="P-bar01"><em>{wc:$shop['canyurenshu']}</em>已参与人次</li>
                    <li class="P-bar02"><em>{wc:$shop['zongrenshu']}</em>总需人次</li>
                    <li class="P-bar03"><em>{wc:$shop['zongrenshu']-$shop['canyurenshu']}</em>剩余人次</li>
                </ul>
            </div>
            <div class="shop_buttom">
                <a href="{WEB_PATH}/goods/{wc:$shop['id']}" target="_blank" class="shop_but" title="立即购买"></a>
                <a href="javascript:;" class="buy_bus fr" title="加入购物车"></a>
            </div>
            <div class="Curbor_id" style="display:none;">{wc:$shop['id']}</div>
            <div class="Curbor_yunjiage" style="display:none;">{wc:$shop['yunjiage']}</div>
            <div class="Curbor_shenyu" style="display:none;">{wc:$shop['shenyurenshu']}</div>
        </li>
        {wc:loop:end} {wc:getlist:end}
    </ul>
    <div class="all_goods">
        <div class="all_goods_main" style="background: #f6f6f6;"><a href="{WEB_PATH}/goods_list/">查看所有商品</a></div>
    </div>
</div>
<!--商品 结束-->
<script type="text/javascript">
$(function() {
    var _BuyList = $("#buyList");
    var Trundle = function() {
        _BuyList.prepend(_BuyList.find("li:last")).css('marginTop', '-85px');
        _BuyList.animate({
            'marginTop': '0px'
        }, 800);
    }
    var setTrundle = setInterval(Trundle, 3000);
    _BuyList.hover(function() {
        clearInterval(setTrundle);
        setTrundle = null;
    }, function() {
        setTrundle = setInterval(Trundle, 3000);
    });
});
</script>
<script type="text/javascript">
$(function() {
    $("#readyLotteryItems li a.buy_bus").click(function() {
        var sw = $("#readyLotteryItems li a.buy_bus").index(this);
        var src = $("#readyLotteryItems li .pic a img").eq(sw).attr('src');
        var $shadow = $('<img id="cart_dh" style="display:none; border:1px solid #aaa; z-index:99999;" width="200" height="200" src="' + src + '" />').prependTo("body");
        var $img = $("#readyLotteryItems li .pic").eq(sw);
        $shadow.css({
            'width': 200,
            'height': 200,
            'position': 'absolute',
            "left": $img.offset().left + 16,
            "top": $img.offset().top + 9,
            'opacity': 1
        }).show();
        var $cart = $("#btnMyCart");
        $shadow.animate({
            width: 1,
            height: 1,
            top: $cart.offset().top,
            left: $cart.offset().left,
            opacity: 0
        }, 500, function() {
            Cartcookie(sw, false);
        });

    });
    $("#readyLotteryItems li a.go_Shopping").click(function() {
        var sw = $("#readyLotteryItems li a.go_Shopping").index(this);

        Cartcookie(sw, true);
    });
});
//存到COOKIE
function Cartcookie(sw, cook) {
    var shopid = $(".Curbor_id").eq(sw).text(),
        shenyu = $(".Curbor_yunjiage").eq(sw).text(),
        money = $(".Curbor_shenyu").eq(sw).text();
    var Cartlist = $.cookie('Cartlist');
    if (!Cartlist) {
        var info = {};
    } else {
        var info = $.evalJSON(Cartlist);
    }
    if (!info[shopid]) {
        var CartTotal = $("#sCartTotal").text();
        $("#sCartTotal").text(parseInt(CartTotal) + 1);
        $("#btnMyCart em").text(parseInt(CartTotal) + 1);
    }
    info[shopid] = {};
    info[shopid]['num'] = 1;
    info[shopid]['shenyu'] = shenyu;
    info[shopid]['money'] = money;
    info['MoenyCount'] = '0.00';
    $.cookie('Cartlist', $.toJSON(info), {
        expires: 30,
        path: '/'
    });
    if (cook) {
        window.location.href = "{WEB_PATH}/member/cart/cartlist";
    }
}
</script>
<!--商品 开始-->
<div class="get_ready">
    <div class="hot_title" style="width:1195px;height: 36px;padding: 10px 0;">
        <h3><i></i>新品上架</h3>
        <!-- <a href="{WEB_PATH}/goods_list/0_0_4" >更多&gt;&gt;</a> -->
        <a class="new_more" style="color: #999;margin: 0;font-size: 12px;" href="{WEB_PATH}/goods_list/0_0_4">更多</a>
    </div>
    <ul id="readyLotteryItems" class="hot-list">
        {wc:getlist sql="select * from `@#_shoplist` where `q_end_time` is null and `q_showtime` = 'N' and `shenyurenshu`!='0' LIMIT 0,8" return="shoplistnew"} {wc:loop $shoplistnew $newshop}
        <li class="list-block" style="height:335px;">
            <div class="pic" style="width:250px;">
                <a href="{WEB_PATH}/goods/{wc:$newshop['id']}" target="_blank" title="{wc:$newshop['title']}"><img style="width:200px;height:200px;margin:25px;" src="{G_UPLOAD_PATH}/{wc:$newshop['thumb']}" alt="{wc:$newshop['title']}"></a>
            </div>
            <p class="name"><a style="font-size:14px;" href="{WEB_PATH}/goods/{wc:$newshop['id']}" target="_blank" title="{wc:$newshop['title']}">{wc:$newshop['title']}</a></p>
            <p style="margin-top:5px;" class="money">价值：<span class="rmb">{wc:$newshop['money']}</span></p>
        </li>
        {wc:loop:end}
    </ul>
</div>
<!--商品 结束-->
<div class="clear:both;"></div>
<!--晒单分享-->
<div class="lottery_show">
    <div class="share_show">
        <div class="hot_title" style="height: 36px;padding: 10px 0;width:1185px;">
            <h3 style="width: auto;"><i></i>晒单分享</h3>
            <!-- <a href="{WEB_PATH}/goods_list/0_0_4" >更多&gt;&gt;</a> -->
            <a class="new_more" style="color: #999;margin: 0;font-size: 12px;" href="{WEB_PATH}/go/shaidan">更多</a>
        </div>
        {wc:getlist sql="select * from `@#_shaidan` order by `sd_id` DESC LIMIT 1" return="shaidan"} {wc:loop $shaidan $sd}
        <div class="singleL">
            <dl>
                <dt>
                    <a href="{WEB_PATH}/go/shaidan/detail/{wc:$sd['sd_id']}"><img alt="" src="{G_UPLOAD_PATH}/{wc:$sd['sd_thumbs']}"></a>
                </dt>
                <dd class="u_user">
                    <p class="u_head">
                        <a href="{WEB_PATH}/go/shaidan/detail/{wc:$sd['sd_id']}" target="_blank"><img alt="" src="{G_UPLOAD_PATH}/{wc:fun:get_user_key($sd['sd_userid'],'img')}"></a>
                    </p>
                    <p class="u_info">
                        <span><a href="{WEB_PATH}/uname/{wc:$sd['sd_userid']}" target="_blank">{wc:fun:get_user_name($sd['sd_userid'])}</a><em>
						{wc:php:start}
						$sdtime=$sd['sd_time'];
						$nowtime=time();
						$chatime=$nowtime-$sdtime;
						echo date('i',$chatime);
						{wc:php:end}
						分钟前</em></span>
                    </p>
                    <p> {wc:$sd['sd_title']}</p>
                </dd>
                <dd class="m_summary">
                    <cite><a href="{WEB_PATH}/go/shaidan/detail/{wc:$sd['sd_id']}">{wc:fun:_strcut($sd['sd_content'],100)}</a></cite>
                    <b><s></s></b>
                </dd>
            </dl>
        </div>
        {wc:loop:end} {wc:getlist:end} {wc:getlist sql="select * from `@#_shaidan` order by `sd_id` DESC LIMIT 1,6" return="shaidan_two"}
        <div class="singleR">
            <ul id="ul_PostList">
                {wc:loop $shaidan_two $sd}
                <li>
                    <a href="{WEB_PATH}/go/shaidan/detail/{wc:$sd['sd_id']}" target="_blank"><img alt="" src="{G_UPLOAD_PATH}/{wc:$sd['sd_thumbs']}">
                        <p>{wc:$sd['sd_title']}</p>
                    </a>
                </li>
            </ul>
            {wc:loop:end} {wc:getlist:end}
            <div class="arrow_left"></div>
            <div class="arrow_right"></div>
        </div>
    </div>
</div>
<!--晒单分享end-->
<!--   <script type="text/javascript" src="{G_GLOBAL_STYLE}/global/js/jquery-1.8.3.min.js"></script>   -->
{wc:templates "index","footer"}
